stylecontext: add opaque background helper
authorChristian Hergert <christian@hergert.me>
Tue, 8 Sep 2015 21:45:51 +0000 (14:45 -0700)
committerChristian Hergert <christian@hergert.me>
Sun, 13 Sep 2015 20:41:19 +0000 (13:41 -0700)
commitc1691a49640026c4701f13c96ab914cd456310b7
tree8ab6a86180cad61b6b85b5545f5bfae2bdf7267c
parentb64a0b923389fb719b6d8947973c834c0be315cb
stylecontext: add opaque background helper

This new private API, _gtk_style_context_is_background_opaque(), is meant to
be used by internal Gtk+ wigets to optimize fast paths for cases where
applicable. One such use would be to use a CAIRO_CONTENT_COLOR surface
instead of CAIRO_CONTENT_COLOR_ALPHA.

https://bugzilla.gnome.org/show_bug.cgi?id=754658
gtk/gtkstylecontext.c
gtk/gtkstylecontextprivate.h